package com.zenaprod.twodcore.ui.menu;

import java.awt.*;

public class MenuCloseBar {
    protected MenuView parentMenuView;
    protected int x, y;
    protected int width, height;
    protected Color backgroundColor;


    public MenuCloseBar(MenuView parentMenuView, int x, int y, int width) {
        this.parentMenuView = parentMenuView;
        this.x = x;
        this.y = y;
        this.width = width;
        this.height = 10;
        this.backgroundColor = new Color(0, 255, 0);
    }


    public void draw(Graphics2D g2D) {
        g2D.setColor(backgroundColor);
        g2D.fillRect(x, y, width, height);
    }


    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public void setBackgroundColor(Color backgroundColor) {
        this.backgroundColor = backgroundColor;
    }

    public void setX(int x) {
        this.x = x;
    }

    public void setY(int y) {
        this.y = y;
    }
}
